package com.kyivmohyla.kma2.client.events.engineer;

import com.google.gwt.event.shared.GwtEvent;

import java.util.Date;

public class EngineerCloseOrderEvent extends GwtEvent<EngineerCloseOrderEventHandler> {
    public static Type<EngineerCloseOrderEventHandler> TYPE = new Type<EngineerCloseOrderEventHandler>();
    private Date date;

    public EngineerCloseOrderEvent(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public Type<EngineerCloseOrderEventHandler> getAssociatedType() {
        return TYPE;
    }

    protected void dispatch(EngineerCloseOrderEventHandler handler) {
        handler.onEngineerCloseOrder(this);
    }
}
